package com.google.code.fulltank.usage;

import org.joda.time.LocalDate;

/**
 * Fuel usage database: lists daily fuel usage in litres over a time period.
 * @author DL
 */
public interface FuelUsageHistory {

    /**
     * @param date   A date.
     * @return the daily fuel usage in litres on the given date.
     */
    public abstract double getFuelUsage(LocalDate date);

    /** @return the first date for which fuel usage is available. */
    public abstract LocalDate getFirstDate();

    /** @return the last date for which fuel usage is available. */
    public abstract LocalDate getLastDate();
}
